package test

import (
	"fmt"
	"github.com/kataras/iris/v12"
	"time"
)

func Index(c iris.Context)  {
	p:=c.URLParam("p")
	if len(p)==0{
		c.JSON(iris.Map{"success":false,"msg":"参数错误","data":time.Now()})
		return
	}
	fmt.Println(p)
	c.JSON(iris.Map{"success":true,"data":time.Now()})
	return
}
